<?php
/**
 *
 * @authors xiadx (xiadx@zpdchina.com)
 * @date    2017-03-05 21:09:18
 * @version $Id$
 */

class DataBasicParamsConfigModel extends BaseModel {

	/**
     * 返回给终端的可执行sql语句的字段名称数组
     * @var [type]
     */
    public $_field_arr = ['param_id','param_key','param_name','param_value','param_desc','param_status'];

    public function ls()
    {
    	$field_str = 'param_id,param_key,param_name,param_value,param_desc,param_status';
    	$query = DB::select($field_str)
    				->from('data_basic_params_config')
    				->where('yiyuan_id', '=', $this->yiyuan_id)
    				->and_where('param_status', '=', 1)
                    ->execute()
                    ->as_array();
		return $query;
    }
}
